import os

from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QWidget, QDialog
from Ui_About import Ui_About
from globalvar import golbalvar

class About(QWidget):
    def __init__(self, parent=None):
        super(About, self).__init__(parent)
        self.about_window = QDialog()
        self.ui_about = Ui_About()
        self.ui_about.setupUi(self.about_window)
        self.about_window.setWindowFlags(Qt.WindowStaysOnTopHint | Qt.WindowCloseButtonHint | Qt.MSWindowsFixedSizeDialogHint)
        self.ui_about.label_5.setText("版本号："+ golbalvar.get_value('curversion'))
        self.ui_about.label_6.setText("更新日期："+ golbalvar.get_value('update_time'))

